package com.itheima.io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("day11_file&&io\\hello.txt");
        FileInputStream fis=new FileInputStream("day11_file&&io\\aa\\hi.txt");
        int b;
       while ((b=fis.read())!=-1){
           fos.write(b);

       }
       fis.close();
       fos.close();

    }
}
